AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

include( 'shared.lua' )

local files = file.Find( "gamemodes/" .. GM.FolderName .. "/gamemode/gamefiles/*.lua", true )
for k,v in pairs( files ) do
	if string.Left( v, 3 ) == "sv_" then
		print( "Loaded Serverside File: " .. v )
		include( "gamefiles/" .. v )
	elseif string.Left( v, 3 ) == "cl_" then
		print( "Loaded Clientside File: " .. v )
		AddCSLuaFile( "gamefiles/" .. v )
	elseif string.Left( v, 3 ) == "sh_" then
		print( "Loaded Shared File: " .. v )
		include( "gamefiles/" .. v )
		AddCSLuaFile( "gamefiles/" .. v )
	end
end

function GM:PlayerInitialSpawn( ply )
	self.BaseClass:PlayerInitialSpawn( ply )
end

function GM:PlayerSpawn( ply )
	self.BaseClass:PlayerSpawn( ply )
end